package com.leyou.trade.enums;

/**
 * <h3>leyou-project</h3>
 * <p></p>
 *
 * @author : hhw
 * @date : 2020-06-09 14:46
 **/

public enum  TradeState {

    REFUND(1, "转入退款"),
    SUCCESS(2, "支付成功"),
    NOTPAY(3, "未支付"),
    CLOSED(4, "已关闭"),
    REVOKED(5, "已撤销"),
    USERPAYING(6, "用户支付中"),
    PAYERROR(7, "支付失败")
    ;

    private Integer value;
    private String msg;

    TradeState(Integer value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    public Integer getValue(){
        return this.value;
    }

    public String getMsg(){
        return msg;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }



}
